<?php

use yii\helpers\Html;
use \yii\widgets\ActiveForm;

?>

<?php
//  整个form表单关闭客户端验证
//    $form = ActiveForm::begin([
//        'enableClientValidation'=>false,
//    ]);

?>
<?php  $form = ActiveForm::begin(); ?>

<?php //echo $form->field($model, 'name')->textInput()->hint("请输入用户名"); ?>

<?php
//对单个input关闭客户端验证
// echo $form->field($model, 'username',['enableClientValidation'=>false,]); ?>

<?php echo $form->field($model, 'username'); ?>

<?php echo $form->field($model, 'password')->passwordInput(); ?>

<div class="form-group">
    <?= Html::submitButton('Submit', ['class' => 'btn btn-primary']) ?>
</div>

<?php ActiveForm::end(); ?>
